package com.icangya.domain;

import javax.persistence.*;

@Entity
@Table(name = "rw_variable")
public class RwVariable {

    private long id;

    private Double turnover;//营业额百分比

    private Double shares;//股份百分比

    private String coutomerPic;//客服图片

    private int firstM;//直推奖励金额

    private int secondM;//一级奖励金额

    private int allAmount;//总金额


    @Basic
    @Column(name = "all_amount")
    public int getAllAmount() {
        return allAmount;
    }

    public void setAllAmount(int allAmount) {
        this.allAmount = allAmount;
    }

    @Basic
    @Column(name = "first_m")
    public int getFirstM() {
        return firstM;
    }

    public void setFirstM(int firstM) {
        this.firstM = firstM;
    }
    @Basic
    @Column(name = "second_m")
    public int getSecondM() {
        return secondM;
    }

    public void setSecondM(int secondM) {
        this.secondM = secondM;
    }

    @Basic
    @Column(name = "coutomer_pic")
    public String getCoutomerPic() {
        return coutomerPic;
    }

    public void setCoutomerPic(String coutomerPic) {
        this.coutomerPic = coutomerPic;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "turnover")
    public Double getTurnover() {
        return turnover;
    }

    public void setTurnover(Double turnover) {
        this.turnover = turnover;
    }

    @Basic
    @Column(name = "shares")
    public Double getShares() {
        return shares;
    }

    public void setShares(Double shares) {
        this.shares = shares;
    }


    public RwVariable() {
    }

    @Override
    public String toString() {
        return "RwVariable{" +
                "id=" + id +
                ", turnover=" + turnover +
                ", shares=" + shares +
                ", coutomerPic='" + coutomerPic + '\'' +
                ", firstM=" + firstM +
                ", secondM=" + secondM +
                '}';
    }
}
